<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>离线任务</title>
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/headersearch.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="./css/home_allnews_list.css" />
    <link rel="stylesheet" type="text/css" href="./css/home_allTasks_list.css" />
    <link rel="stylesheet" type="text/css" href="../script/vant/index.css" />
    <style>
        body, html {
            background: #F7FBFF !important;
        }
        .left-bg-grey{
            background-color: #f2f3f6 !important;
        }
        .left-bg-grey img{
            filter: grayscale(100%);
        }
        .pj-list div {
            flex: 0 0 45%;
        }
        .log_out_btn {
            width: 60%;
            height: 2.2rem;
            margin: 1rem auto 0;
            border: 1px solid #ddd;
            border-radius: 1.1rem;
            text-align: center;
            line-height: 2.2rem;
            color: #999;
            background-color: #f6f6f6;
        }   
        .new-log_out_btn{
            border: 1px solid #ddd;
            color: #999;
            background-color: #f6f6f6;
            box-shadow: none;
        }
    </style>
</head>
<body>
    <div id="app" v-cloak>
        <div class="posibox boxsty aui-margin-t-15" >
            <section class="aui-grid aui-margin-b-15" >
                <div class="aui-row yy-content aui-padded-t-0">
                    <div v-for="(item,index) in list" v-on:click="do_opentypelist(item.PlanType)"
                        class="boxarea mainbox aui-padded-0">
                        <div style="display: flex;">
                            <div class="left-list "
                                v-bind:class="{'left-bg-grey':item.PlanType==1||item.PlanType==2,'left-bg-blue':item.PlanType==3,'left-bg-green':item.PlanType==4}">
                                <div>
                                    <img v-if="item.PlanType==1||item.PlanType==2" class="left-list-img"
                                        src="../image/icon/shebei.png">
                                    <img v-if="item.PlanType==3" class="left-list-img" src="../image/icon/anfang.png">
                                    <img v-if="item.PlanType==4" class="left-list-img" src="../image/icon/huanjing.png">
                                </div>
                                <div class="text-grey aui-margin-t-0" style="text-align: center;font-size: 13px;">
                                    <span v-if="item.PlanType==1||item.PlanType==2">设备管理</span>
                                    <span v-if="item.PlanType==3">安防巡更</span>
                                    <span v-if="item.PlanType==4">环境保洁</span>
                                </div>
                            </div>
                            <div class="aui-padded-l-10 aui-padded-r-10 right-list">
                                <div class="pj-list">
                                    <div>
                                        <span class="text-grey ">已下载任务：</span><span>{{item.UploadCount>99?'99+':item.UploadCount}}</span>
                                    </div>
                                    <div>
                                        <span class="text-grey ">已上传任务:</span><span>{{item.YesUploadCount>99?'99+':item.YesUploadCount}}</span>
                                    </div>
                                </div>
                                <div class="text-grey aui-ellipsis-1 aui-font-size-12">更新时间：{{item.UploadTime}} 下载完成</div>
                            </div>
                        </div>
                    </div>

                    <!-- <div v-if="list.length>0" class="notodayList" style="background:none;">
                        没有更多内容了
                    </div> -->

                </div>
            </section>
        </div>
        <div class="noinfo" id="noorder" v-if="list.length<=0">
            <img src="../image/index/noinfomsg_icon.png" alt="" />
            <h5><br />暂无相关数据</h5>
        </div>
        <!-- <div v-if="list.length>0" class="log_out_btn" v-on:click="onTaskClear()">清理缓存任务</div> -->
        <div class="aui_bottom">
            <div class="aui_bottombtn new-log_out_btn" v-on:click="onTaskClear()">清理缓存任务</div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/vue.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript " src="../script/vant/vue.js"></script>
<script type="text/javascript " src="../script/vant/vant.js"></script>
<script type="text/javascript" src="js/renwulist_frm.js"></script>
</html>
